// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
import Vue from 'vue'
import vueResousce from 'vue-resource'
import {post, fetch} from './util/apiCall'
// import '../static/css/base.css'
import '../static/css/font.css'
import App from './App'
import router from './router'
import Main from '../static/js/common'
// const ElementUI = require('element-ui')

Vue.config.productionTip = false
Vue.use(vueResousce)
Vue.use(ElementUI)
Vue.prototype.common = Main
Vue.prototype.$post = post
Vue.prototype.$get = fetch

/* eslint-disable no-new */
// components: { App },  vue1.0的写法
// render: h => h(App),  vue2.0的写法
new Vue({
  el: '#app',
  router,
  render: h => h(App),
  template: '<App/>'
})
